// A header file used for the declaration of error codes used by systems
// Render	-	1 - 99
// ???		-	100 - 199

// Renderer error codes. These are determined based on HRESULT returns
#define D3DOBJECT_FAIL_INITIALIZE					1
#define SPRITEMAN_FAIL_INITIALIZE					2
#define FONT_FAIL_INITIALIZE						3
#define POSBUFFER_FAIL_INITIALIZE					4
#define INDEXBUFFER_FAIL_INITIALIZE					5
#define VERTEXDECL_FAIL_INITIALIZE					6
#define D3DDEVICE_FAIL_INITIALIZE					7
#define SHADER_FAIL_INITIALIZE						8
#define DEVICE_CLEAR_FAIL							9
#define BEGIN_SCENE_FAIL							10
#define END_SCENE_FAIL								11
#define PRESENT_SCENE_FAIL							12
#define SPRITE_BEGIN_FAIL							13
#define SPRITE_END_FAIL								14
#define POSITION_BUFFER_LOCK_FAIL					15
#define POSITION_BUFFER_UNLOCK_FAIL					16
#define NORMAL_BUFFER_LOCK_FAIL						17
#define NORMAL_BUFFER_UNLOCK_FAIL					18
#define TEXCOORD_BUFFER_LOCK_FAIL					19
#define TEXCOORD_BUFFER_UNLOCK_FAIL					20
#define INDEX_BUFFER_LOCK_FAIL						21
#define INDEX_BUFFER_UNLOCK_FAIL					22
#define CREATE_VERTEX_BUFFER_FAIL					23
#define CREATE_NORMAL_BUFFER_FAIL					24
#define CREATE_TEXCOORD_BUFFER_FAIL					25
#define CREATE_INDEX_BUFFER_FAIL					26
#define CREATE_TANGENT_BUFFER_FAIL					27
#define CREATE_SOMETHING_BUFFER_FAIL				28
#define MODEL_BANK_FAIL_INITIALIZE					29
#define DRAW_INDEXED_PRIMITIVE_FAIL					30
#define SET_STREAM_SOURCES_FAIL						31
#define CUBEMAP_BANK_FAIL_INITIALIZE				32
#define LOAD_MODEL_BINARY_FAIL						33
#define TEXTURE_BANK_FAIL_INITIALIZE				34
#define TEXTURE_LOAD_FAIL							35